package com.ifonly.logger.nop;

import com.ifonly.logger.Logger;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-09 10:09
 * @since JDK 1.6
 */
public class NOPLogger extends Logger {

    public NOPLogger(String name) {
        this.name = name;
    }

    public NOPLogger(Class<?> clazz) {
        this.name = clazz.getName();
    }

    @Override
    public boolean isEnabled(Level level) {
        return false;
    }

    @Override
    public void log(Level level, String message) {

    }

    @Override
    public boolean isTraceEnabled() {
        return false;
    }

    @Override
    public void trace(String message) {

    }

    @Override
    public boolean isDebugEnabled() {
        return false;
    }

    @Override
    public void debug(String message) {

    }

    @Override
    public boolean isInfoEnabled() {
        return false;
    }

    @Override
    public void info(String message) {

    }

    @Override
    public boolean isWarnEnabled() {
        return false;
    }

    @Override
    public void warn(String message) {

    }

    @Override
    public void warn(String message, Throwable throwable) {

    }

    @Override
    public boolean isErrorEnabled() {
        return false;
    }

    @Override
    public void error(String message) {

    }

    @Override
    public void error(String message, Throwable throwable) {

    }

}
